package com.meida.boot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 */
@Controller
@RequestMapping("/common")
public class RegController {


    /**
     * 登录页
     *
     * @return
     */
    @GetMapping("/register/{shareCode}")
    public String register(Model model, @PathVariable String shareCode) {
        model.addAttribute("shareCode", shareCode);
        return "reg";
    }

}
